package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the tanswer database table.
 * 
 */
@Entity
@NamedQuery(name="Tanswer.findAll", query="SELECT t FROM Tanswer t")
public class Tanswer implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int tanswerid;

	private String tanswerA;

	private String tanswerB;

	private String tanswerC;

	private int tanswerchoose;

	private String tanswerD;

	//bi-directional many-to-one association to Titem
	@ManyToOne
	@JoinColumn(name="titemid")
	private Titem titem;

	public Tanswer() {
	}

	public int getTanswerid() {
		return this.tanswerid;
	}

	public void setTanswerid(int tanswerid) {
		this.tanswerid = tanswerid;
	}

	public String getTanswerA() {
		return this.tanswerA;
	}

	public void setTanswerA(String tanswerA) {
		this.tanswerA = tanswerA;
	}

	public String getTanswerB() {
		return this.tanswerB;
	}

	public void setTanswerB(String tanswerB) {
		this.tanswerB = tanswerB;
	}

	public String getTanswerC() {
		return this.tanswerC;
	}

	public void setTanswerC(String tanswerC) {
		this.tanswerC = tanswerC;
	}

	public int getTanswerchoose() {
		return this.tanswerchoose;
	}

	public void setTanswerchoose(int tanswerchoose) {
		this.tanswerchoose = tanswerchoose;
	}

	public String getTanswerD() {
		return this.tanswerD;
	}

	public void setTanswerD(String tanswerD) {
		this.tanswerD = tanswerD;
	}

	public Titem getTitem() {
		return this.titem;
	}

	public void setTitem(Titem titem) {
		this.titem = titem;
	}

}